<template>
  <page-header-wrapper>
    <router-view v-if="isActiveRoute" />
  </page-header-wrapper>
</template>

<script>

export default {
  name: 'PageView',
  data () {
    return {
      isActiveRoute: true
    }
  },
  provide () {
    return {
      reload: this.reload
    }
  },
  methods: {
    reload () {
      this.isActiveRoute = false
      this.$nextTick(function () {
        this.isActiveRoute = true
      })
    }
  }
}
</script>
